package Month09.day0926.part_2;

public class Dog extends Animal implements Running,Jump,Swim{//狗类


    public Dog(String name, int age, String gender) {
        super(name, age, gender);
    }

    @Override
    public void jump() {
        System.out.println(name +"两条狗腿开心的蹦");
    }

    @Override
    public void run() {
        System.out.println(name + "撒开狗腿开心的跑");
    }

    @Override
    public void swim() {
        System.out.println(name + "漏出狗头开心的游");
    }
}
